package com.panshi.modules.system.service.impl;

import com.panshi.modules.system.bean.BeiSysUserRole;
import com.panshi.modules.system.mapper.BeiSysUserRoleMapper;
import com.panshi.modules.system.service.BeiSysUserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户角色表  服务实现类
 * </p>
 *
 * @author 小伍
 * @since 2020-08-07
 */
@Service
public class BeiSysUserRoleServiceImpl implements BeiSysUserRoleService {

    @Autowired
    private BeiSysUserRoleMapper beiSysUserRoleMapper;
    @Override
    public void addSysUserRole(BeiSysUserRole beiSysUserRole) {
        beiSysUserRoleMapper.insert(beiSysUserRole);
    }

    @Override
    public void deleteSysUserRole(Integer uid) {
        beiSysUserRoleMapper.deleteSysUserRole(uid);
    }

    @Override
    public void deleteSysRoleByrid(Integer rid) {
        beiSysUserRoleMapper.deleteSysRoleByrid(rid);
    }
}
